/* Exception */
object test2 {
	def main():Unit = { 
	    try {
	      println((new ExceptionTest()).initMyVar(0));
	    } catch (e : ToolException) {
	      println((e.setMessage(e.getMessage() + "FRA")).getMessage());
	    }	
	}
}

class ExceptionTest {
	var myVar:Int;
	var myTab:Int[];

	def initMyVar(myVar2:Int):Int throws ToolException = {
		try{
			throw new ToolException().setMessage("ARF");
		}catch(e: ToolException){
			println(e.getMessage());
			throw e.setMessage(myVar2 + "arf");
		}

		return 1;
	}
}
